package com.tzxs.pay.util;

/**
 * 判断是否是快速点击
 */
public class ClickUtil {
    private static final long minTime = 1000;
    private static long lastTime;

    public static boolean isFasClick() {
        boolean flag = false;
        long currentTime = System.currentTimeMillis();
        if (currentTime - lastTime < minTime) {
            flag = true;
        }
        lastTime = currentTime;
        return flag;
    }
}
